package com.example.erp.dto.loginDTO.routerDTO;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.List;

@Data
@JsonIgnoreProperties(value = {"menuId"},allowSetters = true)
public class RouterDTO {
    private final Long menuId;
    private final String path;
    private final String component;
    private final Boolean hidden;
    private final String redirect;
    private final String name;
    private final Boolean alwaysShow;
    private final MetaDTO meta;
    private List<ChildDTO> children;

    public RouterDTO(Long menuId, String path, String component, Boolean hidden, String redirect, String name, Boolean alwaysShow, MetaDTO meta) {
        this.menuId = menuId;
        this.path = path;
        this.component = component;
        this.hidden = hidden;
        this.redirect = redirect;
        this.name = name;
        this.alwaysShow = alwaysShow;
        this.meta = meta;
    }
}
